package cn.mily.user.service;

import cn.mily.basics.exception.UtilException;
import cn.mily.basics.utils.JsonResult;
import cn.mily.user.domain.LoginInfo;
import cn.mily.user.domain.dto.RegInfoDto;

import java.io.IOException;

public interface IWechatService {

    /**
     * 获取 微信用户数据
     * @param code 微信授权码
     * @return 微信用户数据
     */
    JsonResult getWechatToken(String code) throws IOException;

    JsonResult bangder(RegInfoDto regInfoDto) throws UtilException;
}
